package router

import (
	"api-gateway/handler/api"
	"github.com/gin-gonic/gin"
)

func LoadRouter(r *gin.Engine) {

	routerGroup := r.Group("v1")
	{
		apiUser := routerGroup.Group("api")
		{
			apiUser.POST("Login", api.Login)
		}
		apiTicket := routerGroup.Group("api")
		{
			apiTicket.POST("buyTicket", api.BuyTicket)
			apiTicket.POST("findRemaTicket", api.FindRemaTicket)
			apiTicket.POST("findTicketName", api.FindTicketName)
			apiTicket.POST("listTicketType", api.ListTicketType)

		}
	}

}
